/**
 * 
 */
package controllers.admin;

import models.admin.Complemento;
import controllers.BaseController;
import controllers.Check;

/**
 * @author rjanixz
 *
 */
public class Complementos extends BaseController {

	@Check(value="ADD")
	public static void save(Complemento complemento) {
		complemento.save();
		redirect("/admin/Complementos/all");
	}
	
	@Check(value="EDIT")
	public static void update(Complemento complemento) {
		complemento.save();
		redirect("/admin/Complementos/all");
	}
}
